home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow_WinXP / VMR / VMRXcl / project.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  1.4 KB  |  60 lines

  1. //----------------------------------------------------------------------------
  2. //  File:   project.h
  3. //
  4. //  Desc:   DirectShow sample code
  5. //          Master header file that includes all the other header files 
  6. //          used by the project.
  7. //
  8. //  Copyright (c) 2000-2001 Microsoft Corporation. All rights reserved.
  9. //----------------------------------------------------------------------------
  10. #include <streams.h>
  11. #include <commdlg.h>
  12. #include <stdlib.h>
  13. #include <stdio.h>
  14. #include <limits.h>
  15. #include <process.h>
  16. #include <time.h>
  17. #include <objbase.h>
  18. #include <ddraw.h>
  19. #include <atlbase.h>
  20. #include <atlconv.cpp>
  21. #include <mmreg.h>
  22. #include <commctrl.h>
  23. #include <strmif.h>
  24. #include <combase.h>
  25. #include <stdarg.h>
  26. #include <stdio.h>
  27. #include <uuids.h>
  28.  
  29.  
  30. #include "app.h"
  31. #include "vcdplyer.h"
  32. #include "ddrawsupport.h"
  33. #include "resource.h"
  34. #include "utils.h"
  35.  
  36.  
  37. #ifndef __RELEASE_DEFINED
  38. #define __RELEASE_DEFINED
  39. template<typename T>
  40. __inline void RELEASE( T* &p )
  41. {
  42.     if( p ) {
  43.         p->Release();
  44.         p = NULL;
  45.     }
  46. }
  47. #endif
  48.  
  49. #ifndef CHECK_HR
  50.     #define CHECK_HR(expr) if (FAILED(expr)) {\
  51.         OutputDebugString( hresultNameLookup(expr)+"\n");\
  52.         DbgLog((LOG_ERROR, 0, \
  53.                 TEXT("FAILED: %s\nat Line:%d of %s"), \
  54.                 TEXT(#expr), __LINE__, TEXT(__FILE__) ));__leave; } else
  55. #endif
  56.  
  57.  
  58.  
  59.  
  60.